|
![](/i/fill.gif) |
As far as I know, the angle between two vectors can be found by dividing the
dot product by the lengths and taking the arccosine. If the lengths are both
one, then the arccosine of the dot product should be equal to the angle.
Povray finds the angle between two vectors like this like this: acos(min(1,
vdot(vnormalize(V1), vnormalize(V2))))
What is the purpose of the min()? I guess that this is for some special
case, but I can't figure out what it is. Just curious, but I would really
appreciate some enlightenment. My math is limited, but I'm working on it.
-Shay
Post a reply to this message
|
![](/i/fill.gif) |